import Layout from '@/layout'
export default [
  // 仓库管理信息
  // 一级路由
  {
    path: '/manage-base-info',
    component: Layout,
    name: 'layout',
    redirect: '/manage-base-info',
    meta: { title: '基础信息管理', icon: 'skill' },
    children: [{
      // 二级路由
      path: 'warehouse', // 如果children path置空的话 当前这个路由会作为一级渲染的默认路由
      component: { render(c) { return c('router-view') } },
      children: [
        {
          path: '', // 如果children path置空的话 当前这个路由会作为一级渲染的默认路由
          name: 'warehouse',
          component: () => import('@/views/ManageBaseInfo/Warehouse'),
          meta: { title: '仓库管理', showNav: true }
        },
        // 三级路由
        {
          path: 'details',
          name: 'adddetails',
          component: () => import('@/views/ManageBaseInfo/Warehouse/Details.vue'),
          meta: { title: '新增仓库', showNav: true },
          hidden: true
        },
        {
          path: 'details/:editid',
          name: 'editdetails',
          component: () => import('@/views/ManageBaseInfo/Warehouse/Details.vue'),
          meta: { title: '编辑仓库', showNav: true },
          hidden: true
        }
      ]
    },
    {
      path: 'area',
      name: 'area',
      component: () => import('@/views/ManageBaseInfo/Area'),
      meta: { title: '库区管理', showNav: true }
    },
    {
      path: 'location',
      name: 'location',
      component: () => import('@/views/ManageBaseInfo/Location'),
      meta: { title: '库位管理', showNav: true }
    },
    {
      path: 'location-view',
      name: 'location-view',
      component: () => import('@/views/ManageBaseInfo/LocationView'),
      meta: { title: '库位视图', showNav: true }
    },
    {
      path: 'goods',
      name: 'goods',
      component: () => import('@/views/ManageBaseInfo/Goods'),
      meta: { title: '货品管理', showNav: true }
    },
    {
      path: 'goods-type',
      name: 'goods-type',
      component: () => import('@/views/ManageBaseInfo/GoodsType'),
      meta: { title: '货品类型管理', showNav: true }
    }

    ]
  }
]
